 
import 'package:dio/dio.dart';
import 'package:flutterApp/api/Reaquest.dart';
final String api = "http://172.16.100.59:8080";
Future<Response> getStatus(params) async{
   return await post(api+"/info/getStatus",params: params,loadingMessage:"登陆中");
}

Future<Response> getStatus2() async{
   return await post(api+"/info/getStatus",loadingMessage:"登陆中");
}


Future<Response> getDevices() async{
   return await get(api+"/info/getDevices");
}


Future<Response> getDeviceDetail() async{
   return await get(api+"/info/getDeviceDetail");
}


Future<Response> alarmList() async{
   return await get(api+"/info/alarmList");
}

Future<Response> operateList() async{
   return await get(api+"/info/operateList");
}

Future<Response> recordList() async{
   return await get(api+"/info/recordList");
}

Future<Response> getAlarmList() async{
   return await get(api+"/info/getAlarmList");
}

